from django.urls import path
from django.conf.urls import url, include
from .views import *

app_name = 'member'
urlpatterns = [
    path('token/test/', MemberTestLoginView.as_view()),  # 注册登录
    path('token/obtain/', MemberLoginView.as_view()),  # 注册登录
    path('token/obtain_by_password/', MemberLoginByPwdView.as_view()),  # 通过密码登录
    path('reset_pwd/', MemberResetPasswordView.as_view()),  # 修改密码

    path('obain_info/', MemberObtainView.as_view()),  # 获取用户信息
    path('edit_info/', MemberEditInfoView.as_view()),  # 编辑用户信息

    # apps
    path('diary/', include('apps.member.diary.urls')),  # 日志
    path('comment/', include('apps.member.comments.urls'))  # 评论

]
